package com.ruihui.activity.pojo;

import com.baomidou.mybatisplus.enums.IdType;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableLogic;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.annotations.Version;

import java.io.Serializable;

/**
 * <p>
 * 用户优惠券表
 * </p>
 *
 * @author cf123
 * @since 2018-10-17
 */
@TableName("ruihui_accoupon")
public class Accoupon implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value="用户优惠券id")
    private Integer id;
    /**
     * 优惠券id
     */
    @ApiModelProperty(value="优惠券id")
    private Integer couponid;
    @ApiModelProperty(value="用户id")
    private Integer userid;
    /**
     * 1:未使用，2：已使用
     */
    @ApiModelProperty(value="1:未使用，2：已使用")
    private Integer state;
    /**
     * 1价格，2折扣
     */
    @ApiModelProperty(value="1价格，2折扣")
    private Integer type;
    /**
     * 领取时间
     */
    @ApiModelProperty(value="领取时间")
    private BigDecimal createtime;
    /**
     * 优惠券数量
     */
    @ApiModelProperty(value="优惠券数量")
    private Integer cnum;
    /**
     * 优惠券开始时间
     */
    @ApiModelProperty(value="优惠券开始时间")
    private BigDecimal starttime;
    /**
     * 优惠券结束时间
     */
    @ApiModelProperty(value="优惠券结束时间")
    private BigDecimal endtime;
    /**
     * 金额或折扣
     */
    @ApiModelProperty(value="金额或折扣")
    private BigDecimal pod;
    /**
     * 逻辑价格
     */
    @ApiModelProperty(value="逻辑价格")
    private BigDecimal acrdprice;
    /**
     * 编号
     */
    @ApiModelProperty(value="编号")
    private String acno;
    /**
     * 描述
     */
    @ApiModelProperty(value="描述")
    private String contents;
    /**
     * 优惠券用于商品分类id
     */
    @ApiModelProperty(value="优惠券用于商品分类id，-1为通用券")
    private Integer cid;
    /**
     * 优惠券商品分类名称
     */
    @ApiModelProperty(value="优惠券商品分类名称")
    private String coupname;
    /**
     * 锁
     */
    @ApiModelProperty(value="锁")
    @Version
    private Long version;
    /**
     * 逻辑删除
     */
    @TableLogic
    @ApiModelProperty(value="逻辑删除")
    private Integer del;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getCouponid() {
        return couponid;
    }

    public void setCouponid(Integer couponid) {
        this.couponid = couponid;
    }

    public Integer getUserid() {
        return userid;
    }

    public void setUserid(Integer userid) {
        this.userid = userid;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public BigDecimal getCreatetime() {
        return createtime;
    }

    public void setCreatetime(BigDecimal createtime) {
        this.createtime = createtime;
    }

    public Integer getCnum() {
        return cnum;
    }

    public void setCnum(Integer cnum) {
        this.cnum = cnum;
    }

    public BigDecimal getStarttime() {
        return starttime;
    }

    public void setStarttime(BigDecimal starttime) {
        this.starttime = starttime;
    }

    public BigDecimal getEndtime() {
        return endtime;
    }

    public void setEndtime(BigDecimal endtime) {
        this.endtime = endtime;
    }

    public BigDecimal getPod() {
        return pod;
    }

    public void setPod(BigDecimal pod) {
        this.pod = pod;
    }

    public Integer getCid() {
        return cid;
    }

    public void setCid(Integer cid) {
        this.cid = cid;
    }

    public Long getVersion() {
        return version;
    }

    public void setVersion(Long version) {
        this.version = version;
    }

    public Integer getDel() {
        return del;
    }

    public void setDel(Integer del) {
        this.del = del;
    }

	public BigDecimal getAcrdprice() {
		return acrdprice;
	}

	public void setAcrdprice(BigDecimal acrdprice) {
		this.acrdprice = acrdprice;
	}

	public String getAcno() {
		return acno;
	}

	public void setAcno(String acno) {
		this.acno = acno;
	}

	public String getContents() {
		return contents;
	}

	public void setContents(String contents) {
		this.contents = contents;
	}

	public String getCoupname() {
		return coupname;
	}

	public void setCoupname(String coupname) {
		this.coupname = coupname;
	}

	@Override
	public String toString() {
		return "Accoupon [id=" + id + ", couponid=" + couponid + ", userid=" + userid + ", state=" + state + ", type="
				+ type + ", createtime=" + createtime + ", cnum=" + cnum + ", starttime=" + starttime + ", endtime="
				+ endtime + ", pod=" + pod + ", acrdprice=" + acrdprice + ", acno=" + acno + ", contents=" + contents
				+ ", cid=" + cid + ", coupname=" + coupname + ", version=" + version + ", del=" + del + "]";
	}




}
